package com.ahy231.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author ahy231
 * @date 2021/7/26 9:40
 * @description
 */
@Data
@ApiModel("用户角色")
public class Role implements Serializable {

    private static final long serialVersionUID = -2382204337606630791L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Integer roleId;

    @ApiModelProperty("角色名称")
    private String role;
}
